export function phoneCheck(rule, value, callbackFn) {
  const reg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/
  if (value && !reg.test(value)) {
    callbackFn('请输入正确的手机号')
    return
  }
  callbackFn()
}

export function idCardCheck(rule, value, callbackFn) {
  const reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
  if (value && !reg.test(value)) {
    callbackFn('请输入正确的身份证号')
    return
  }
  callbackFn()
}
